//
// Created by linus on 22-7-14.
//
#pragma once

#include "hv/WebSocketClient.h"

class WebSocketService {
 private:
  hv::WebSocketClient ws;

 public:
  WebSocketService();
  WebSocketService(const char* url);
  ~WebSocketService();

  void Init(const char* url);

  void SendMessage(const char* message);
  void onMessage(void (*callback)(const char* msg), const char* msg);
};
